
function Code_getWord(code,line,col)
    for l in string.gmatch(code,'([^\n]+)[\n]*' )do
        if(idx==line)then
            local s = l:sub(1,col-1);
            ps,pe,c = s:find('([%w_%$]+)$');
            match_word = c;
        end
        idx = idx + 1;
    end
    return match_word;
end

